﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:PhoneToolkit_Extensions_Behaviors="clr-namespace:PhoneToolkit.Extensions.Behaviors;assembly=PhoneToolkit.Extensions.Behaviors" 
    x:Class="PhoneToolkit.Extensions.Behaviors.Sample.AboutPage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

	<i:Interaction.Behaviors>
		<PhoneToolkit_Extensions_Behaviors:TransitionTurnstileInBehavior/>
		<PhoneToolkit_Extensions_Behaviors:TransitionTurnstileOutBehavior/>
		<PhoneToolkit_Extensions_Behaviors:EnableTiltEffectBehavior/>
	</i:Interaction.Behaviors>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="SILVERLIGHT TOOLKIT BEHAVIOR EXTENSIONS" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="About" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Silverlight Toolkit Behavior Extensions Sample" Width="400" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}" FontFamily="{StaticResource PhoneFontFamilySemiBold}" VerticalAlignment="Bottom" Foreground="{StaticResource PhoneAccentBrush}" />
                    <TextBlock Text="1.0" Margin="12,0,0,2" FontSize="{StaticResource PhoneFontSizeMediumLarge}" VerticalAlignment="Bottom" FontFamily="{StaticResource PhoneFontFamilySemiBold}" />
                </StackPanel>
                <TextBlock TextWrapping="Wrap" Text="Copyright © 2011 Geert van der Cruijsen" Margin="0 0 0 12"/>
                <StackPanel Orientation="Vertical" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Visible">
                    <TextBlock Text="This project made as an extension to the existing Silverlight Toolkit for Windows Phone. This project contains behaviors which can be used by designers to set page transitions or the tilt effect without writing any XAML. For more information visit the website on Codeplex or check the tutorials on http://www.vdcruijsen.net" TextWrapping="Wrap" d:LayoutOverrides="Width" />
                    <StackPanel Orientation="Horizontal">
                    	<Button x:Name="CodeplexButton" Content="Codeplex"  Width="228" Click="CodeplexButton_Click" />
                    	<Button x:Name="TutorialsButton" Content="Tutorials" Width="228" Click="TutorialsButton_Click" />
                    </StackPanel>
                </StackPanel>
                <StackPanel Orientation="Vertical">

                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="If you like the project or if you have any feedback you can submit a review of this app with your comments or send a mail using the button below."/>
                    <StackPanel Orientation="Horizontal">
                        <Button x:Name="ReviewButton" Content="Submit review" Click="ReviewButton_Click" Width="228"/>
                        <Button x:Name="MailButton" Padding="17,12" Click="MailButton_Click" Margin="0,0,0,0" Width="228">
                            <Canvas xmlns="http://schemas.microsoft.com/client/2007" Width="23.903" Height="18.441">
                                <Path Fill="{StaticResource PhoneForegroundBrush}" Data="F1 M 2.446,15.994 L 2.446,5.334 L 11.021,12.021 C 11.243,12.193 11.510,12.279 11.774,12.279 C 12.038,12.279 12.303,12.193 12.524,12.023 L 21.457,5.100 L 21.457,15.994 L 2.446,15.994 Z M 20.883,2.447 L 11.776,9.506 L 2.728,2.447 L 20.883,2.447 Z M 22.678,0.000 L 1.221,0.000 C 0.547,0.000 0.000,0.547 0.000,1.223 L 0.000,17.217 C 0.000,17.893 0.547,18.441 1.221,18.441 L 22.678,18.441 C 23.354,18.441 23.903,17.893 23.903,17.217 L 23.903,1.223 C 23.903,0.547 23.354,0.000 22.678,0.000" />
                            </Canvas>
                        </Button>
                    </StackPanel>
                    
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
